#include<bits/stdc++.h>
using namespace std;
int a[100005];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    cin>>n;
    for(int i=1;i<=n;i++)
        cin>>a[i];
    sort(a+1,a+1+n);
    int l=1,r=2,sum=0;
    while(r<=n)
    {
        while(a[r]<=a[l]&&r<=n)
            r++;
        if(r<=n)
            sum++;
        l++;
        r++;
    }
    cout<<n-sum;
    return 0;
}
